package com.xmg.controller;

import lombok.Getter;

/**
 * @Author: mazhongqing
 * @Date: 2020/11/4 14:33
 */
@Getter
public enum ResultEnum {
    SUCCESS(200,"成功"),
    FAILED(1001,"失败"),
    VALIDATE_FAILED(1002,"参数校验失败"),
    ERROR(5000,"未知错误"),

    ;

    private int code;
    private String msg;

    ResultEnum(int code,String msg){
        this.code = code;
        this.msg = msg;
    }
}
